import axios from "../../utils/axios";

// 获取信息列表
export function getCompany(data) {
    return axios({
        url: "/goldendays-promote/companyManager/getCompany",
        method: "post",
        data: data
    });
}
//获取公司详情列表 /companyManager/getCompanyDetails
export function postCompany(query) {
    return axios({
        url: "/goldendays-promote/companyManager/getCompanyDetails",
        method: "post",
        params: query
    });
}

//已有首席合伙人变更申请 /companyManager/lastCeoChangeRecord
export function lastCeoChangeRecord(query) {
    return axios({
        url: "/goldendays-promote/companyManager/lastCeoChangeRecord",
        method: "post",
        params: query
    });
}
//获取申请首席意愿用户(变更首席) /companyManager/getApplyCeoWishList
export function getApplyCeoWishList(query) {
    return axios({
        url: "/goldendays-promote/companyManager/getApplyCeoWishList",
        method: "post",
        params: query
    });
}

//申请变更首席 /companyManager/applyChangeCEO
export function applyChangeCEO(data) {
    return axios({
        url: "/goldendays-promote/companyManager/applyChangeCEO",
        method: "post",
        data: data
    });
}


// 获取申请首席意愿用户(创建新公司)/companyManager/getNewCompanyCeoWishList
export function getNewCompanyCeoWishList(query) {
    return axios({
        url: "/goldendays-promote/companyManager/getNewCompanyCeoWishList",
        method: "post",
        params: query
    });
}
//申请创建公司/companyManager/applyCreateCompany
export function applyCreateCompany (data) {
    return axios({
        url: "/goldendays-promote/companyManager/applyCreateCompany ",
        method: "post",
        data: data
    });
}


// /sysArea/areaList 选择所在地区
export function areaList(query) {
    return axios({
        url: "/goldendays-currency/sysArea/areaList",
        method: "post",
        params: query
    });
}

// /sysArea/areaList 选择所在地区
export function getCity(query) {
    return axios({
        url: "/goldendays-currency/sysArea/areaList",
        method: "post",
        params: query
    });
}

// /sysArea/areaList 选择所在县
export function getCounty(query) {
    return axios({
        url: "/goldendays-currency/sysArea/areaList",
        method: "post",
        params: query
    });
}

// 新公司管理
// /repertory/getMycompanyList 获取我的公司列表
export function getMycompanyList(query) {
    return axios({
        url: "/goldendays-promote/companyManager/getMycompanyList",
        method: "get",
        params: query
    });
}
export function getCompanyPosition(query) {
    return axios({
        url: "/goldendays-promote/cooperativeBrand/getCompanyPosition",
        method: "get",
        params: query
    });
}
// 新组建公司意
// 组建公司意愿管理-列表数据获取
export function getCreateCompanyList(query) {
    return axios({
        url: "/goldendays-promote/companyManager/getCreateCompanyWishPage",
        method: "post",
        params: query
    })
}

// 组建公司意愿管理-组建新公司同意
export function createCompanyConfirm(query) {
    return axios({
        url: "/goldendays-promote/companyManager/createNewCompany",
        method: "post",
        params: query
    })
}